package solutions

object Euler004 {

  def main(args: Array[String]){
    
    var max = 0;
    
    for(x <- 999 to 100 by -1){
      for(y <- 999 to 100 by -1){
    	  if((x*y).toString().reverse.equals((x*y).toString())  && max < (x*y) ){
    	    max = (x*y)
    	  }
      }
    }
    println( max )
    
  }
}